package com.evil.kingdom.pojo.entity.action;

import com.evil.kingdom.pojo.dto.person.general.GeneralDto;
import com.evil.kingdom.pojo.entity.base.Side;
import lombok.Getter;

import java.util.Set;

/**
 * @author liyang
 * @date 2024-06-13 18:12
 */
@Getter
public class BattlefieldSide implements Side {

    /**
     * 攻方主帅
     */
    private final String offensiveName;
    /**
     * 守方主帅
     */
    private final String defensiveName;
    /**
     * 攻方武将
     */
    private final Set<GeneralDto> offensiveGenerals;
    /**
     * 守方武将
     */
    private final Set<GeneralDto> defensiveGenerals;

    public BattlefieldSide(String offensiveName, String defensiveName, Set<GeneralDto> offensiveGenerals, Set<GeneralDto> defensiveGenerals) {
        this.offensiveName = offensiveName;
        this.defensiveName = defensiveName;
        this.offensiveGenerals = offensiveGenerals;
        this.defensiveGenerals = defensiveGenerals;
    }
}
